var db = openDatabaseSync("QDeclarativeExampleDB", "1.0", "The Example QML SQL!", 1000000);
// insert database
db.transaction(
    function(tx) {
        // Create the database if it doesn't already exist
        //tx.executeSql('DROP TABLE QATbl');
        //tx.executeSql('DROP TABLE SystemTbl');
        tx.executeSql('CREATE TABLE IF NOT EXISTS QATbl(ID INTEGER ,Question TEXT, Answer1 TEXT,Answer2 TEXT,Answer3 TEXT,Answer4 TEXT,Correct INTEGER,Level INTEGER,Mode INTEGER)');
        tx.executeSql('CREATE TABLE IF NOT EXISTS SystemTbl (Level INTEGER, Mode INTEGER, Score INTEGER, Count INTEGER, Time INTEGER, Name TEXT)');
        tx.executeSql('CREATE TABLE IF NOT EXISTS HighScoreTbl (Mode INTEGER, Score INTEGER,Name TEXT)');
        tx.executeSql('CREATE TABLE IF NOT EXISTS SoundTbl (Sound INTEGER)');
    }
)
